[paket]
tanim   = FTDI yongalarıyla, isteğe bağlı python bağlamalarıyla konuşmak için bir kitaplık.
paketci = Cihan_Alkan  
grup    = kütüphane  
url     = https://www.intra2net.com/en/developer/libftdi/download.php

[kaynak]
1 =  https://www.intra2net.com/en/developer/libftdi/download/${isim}1-$surum.tar.bz2
2= https://github.com/archlinux/svntogit-community/raw/packages/libftdi/trunk/fix_includes_path.patch

[gerek]
derleme = swig confuse
calisma = confuse

[sha512]
#1  =  a521622e23d9882842440

[derle]
betik  =  cd "${isim}1-$surum"
betik  =  sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt
betik  =  sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" packages/99-libftdi.rules
betik  =  patch -p1 < /sources/fix_includes_path.patch
betik  =  mkdir -p build
betik  =  cd build
betik  =  cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF -DFTDI_EEPROM=ON -DFTDIPP=ON -DPYTHON_BINDINGS=ON -DLINK_PYTHON_LIBRARY=ON
betik  =  make

[pakur]
betik  = cd "${isim}1-$surum/build"
betik  = make DESTDIR="$PKG" install
betik  = install -Dm644 "../packages/99-libftdi.rules" "$PKG/usr/lib/udev/rules.d/69-libftdi.rules"
betik  = install -d "$PKG/usr/share/libftdi/examples" 
betik  = cp -r ../examples/* "$PKG/usr/share/libftdi/examples"
